<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>重置登录密码</title>
    <link rel="stylesheet" href="../../assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../assets/font-awesome/4.5.0/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="../../assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style"/>
    <link rel="stylesheet" href="../../assets/css/login/member.css">
</head>
<body>
<div class="head">
    <div class="header">
        <div class="header-cnt fn-clear">
            <h1 class="logo">
                <a href="" class="logo-img logo-img-jx" title="激想云商零售管理">
                    激想云商零售管理
                </a>
            </h1>
            <h2 class="logo-title">
                找回密码
            </h2>
            <ul class="jx-nav">
                <li class="nav-first">
                    <a href="../index.html">注册</a>
                </li>
                <li class="nav-last">
                    <a href="../index.html" target="_blank" seed="nav-link-advice">前往登录</a>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="container">
    <div class="content">
        <div class="maincenter">
            <div class="maincenter-box">
                <div class="maincenter-box-tip">
                    <p class="ui-tiptext">
                        输入登录帐户名
                    </p>
                </div>
                <form class="ui-form" id="J-findPwdForm" method="post" action="">
                    <div class="ui-form-item">
                        <label class="ui-label">账户名</label>
                        <input id="J-accName" name="logonId" class="ui-input" type="text" placeholder="手机号/电子邮箱"
                               value=""
                               autocomplete="off">
                        <div class="ui-form-explain"><i class="fa fa-times-circle ui-form-icon" aria-hidden="true"></i>
                        </div>
                    </div>
                    <div class="ui-form-item">
                        <label for="J-checkcode" class="ui-label">验证码</label>
                        <input id="J-checkcode" name="picCheckCode" class="ui-input ui-input-checkcode" type="text"
                               autocomplete="off" maxlength="4">
                        <div class="ui-form-explain"><i class="fa fa-times-circle ui-form-icon" aria-hidden="true"></i>
                        </div>
                        <img title="点击图片刷新验证码" class="ui-input-checkcode-img J-changeCheckcode" complete="complete"
                             src="../../assets/images/code.png" alt="输入验证码" style="cursor:pointer;">
                        <a href="javascript:;" target="_blank" class="ui-form-other J-changeCheckcode"
                           id="J-forgetAccount">看不清？换一张</a>
                    </div>
                    <div class="ui-form-item ui-form-item-last">
                        <div class="ui-button ui-button-morange">
                            <input type="submit" value="下一步" class="ui-button-text">
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<div class="footer">
    <div class="footer-inner">
        <div class="footer-content">
            沪ICP备15052275号-2
        </div>
    </div>
</div>
<!--[if !IE]> -->
<script src="../../assets/js/jquery-2.1.4.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="../../assets/js/jquery-1.11.3.min.js"></script>
<![endif]-->
<script src="../../assets/js/jquery.validate.min.js"></script>
</body>
<script>
    //表单验证
    $("#J-findPwdForm").validate({
       /* onkeyup: function (element, event) {
            //去除左侧空格
            var value = this.elementValue(element).replace(/^\s+/g, "");
            $(element).val(value);
        },*/
        onfocusout: function (element, event) {
            var value = this.elementValue(element).replace(/\s|\xA0/g,"");
            $(element).val(value);
        },
        errorPlacement: function (error, element) {
            error.insertAfter(element.next().find("i"));
        },
        rules: {
            logonId: {
                required: true
            },
            picCheckCode: {
                required: true,
                minlength: 4
            }
        },
        messages: {
            logonId: {
                required: "请输入手机号/邮箱"
            },
            picCheckCode: {
                required: "请输入验证码",
                minlength: "验证码长度为4位"
            }
        },
        highlight: function (e) {
            $(e).closest('.ui-form-item').addClass('ui-form-item-error');
        },
        success: function (e) {
            $(e).closest('.ui-form-item').removeClass('ui-form-item-error');
        },
        submitHandler: function (form) {
            window.location = './queryStrategy.html'
        },
        invalidHandler: function (form) {
        }
    });
</script>
</html>